<%-- 
    Document   : UserEditProfile
    Created on : May 21, 2010, 10:41:38 PM
    Author     : vasi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="entities.UserEntity" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>User Edit Profile</title>
        <link href="<% out.print(request.getContextPath()); %>/styles/default.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <jsp:include page="fragments/Header.jsp" />
        <div id="page">
            <h1>Edit your profile.</h1>
            <div id="page_content">
                <jsp:include page="fragments/Tabs.jsp" />
                <% UserEntity user = (UserEntity)request.getAttribute("user");%>
                <form id="form_user_edit" action="<% out.print(request.getContextPath()+"/user/profile/edit"); %>" method="post">
                    <table>
                        <tr>
                            <td><label for="first_name">First Name:</label></td>
                            <td><input type="text" name="first_name" value="<% out.print(user.getFirstname());%>"/></td>
                        </tr>
                        <tr>
                            <td><label for="last_name">Last Name:</label></td>
                            <td><input type="text" name="last_name" value="<% out.print(user.getLastname());%>" /></td>
                        </tr>
                        <tr>
                            <td><label for="email">Email:</label></td>
                            <td><input type="text" name="email" value="<% out.print(user.getMail());%>" /></td>
                        </tr>
                        <tr>
                            <td><label for="password">Password:</label></td>
                            <td><input type="password" name="password" /></td>
                        </tr>
                        <tr>
                            <td colspan="2"><input type="submit" name="submit" value="Submit"</td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </body>
</html>
